export const toArray = item => {
	if (Array.isArray(item)) {
		return item;
	}

	return [item];
};

export const overSize = (files, maxSize) => {
	return toArray(files).some(file => file.size > maxSize);
};
